<div class="tableToolbar">
	<div class="coll-md-9" id="addInput">
		<div class="coll-md-1">
			<input type="text" class='search' placeholder="项目名称" ng-model="ctrlScope.itemsearch.itemname">
		</div>
		<div class="coll-md-15">
			<input type="text" class='search' placeholder="用户名/真实姓名" ng-model="ctrlScope.itemsearch.name">
		</div>

		<div class="coll-md-35 scalenone" id="search2">
			<div class="coll-md-25 triangle">
				<select class="form-control" ng-model="ctrlScope.itemsearch.couponUseStatus">
					<option value=""  disabled selected hidden>红包使用</option>
					<option value="1">使用</option>
					<option value="0">未使用</option>
				</select>
			</div>
			<div class="coll-md-25 triangle">
				<select class="form-control" ng-model="ctrlScope.itemsearch.ticketUseStatus">
					<option value=""  disabled selected hidden>加息券使用</option>
					<option value="1">使用</option>
					<option value="0">未使用</option>
				</select>
			</div>
			<div class="coll-md-25 triangle">
				<select class="form-control" ng-model="ctrlScope.itemsearch.customerType">
					<option value=""  disabled selected hidden>用户类型</option>
					<option value="0">普通用户</option>
					<option value="1">业务员</option>
					<option value="2">员工</option>
					<option value="3">渠道用户</option>
					<option value="4">线下客户</option>
					<option value="5">其他客户</option>
				</select>
			</div>
			<div class="coll-md-25 triangle">
				<select class="form-control" ng-model="ctrlScope.itemsearch.investType">
					<option value=""  disabled selected hidden>投资类型</option>
					<option value="1">pc端</option>
					<option value="2">APP端</option>
					<option value="3">WAP端</option>
					<option value="4">微信端</option>
					<option value="5">自动投标</option>
					<option value="6">体验金使用</option>
					<option value="7">ios端</option>
					<option value="8">安卓端</option>
					<option value="9">锁定自动投标</option>
					<option value="10">未锁定自动投标</option>
				</select>
			</div>
		</div>
		<div class="coll-md-3 scalenone"  id="searchdate" datahide>
			<div class="coll-md-5" >
				<p class="input-group">
					<input type="text" class="search" placeholder="开始时间" uib-datepicker-popup="yyyy-MM-dd"
						   ng-model="ctrlScope.itemsearch.beginDateTimex" is-open="popup1.opened" datepicker-options="dateOptions"
						  ng-minlength="1" />
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
												class="glyphicon glyphicon-calendar"></i></button>
							          </span>
				</p>
			</div>
			<div class="coll-md-5">
				<p class="input-group inline">
					<input type="text" class="search" placeholder="结束时间" uib-datepicker-popup="yyyy-MM-dd"
						   ng-model="ctrlScope.itemsearch.endDateTimex" is-open="popup2.opened" datepicker-options="dateOptions"
						   ng-minlength="1" />
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
												class="glyphicon glyphicon-calendar"></i></button>
							          </span>
				</p>
			</div>
		</div>
		<div class="coll-md-1">
			<input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
			<input type="button" class="small-icon search2" value="搜索">
			<input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
			<input type="button" class="small-icon reset" value="重置">

			<div class="dropdown-menu-right">
				<input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon" data-toggle="dropdown"
					   aria-haspopup="true" aria-expanded="false">
				<input type="button" class="small-icon more" value="更多">
				<ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
					<li><a href="javascript:;">日期搜索</a></li>
					<li><a href="javascript:;">其他条件搜索</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="coll-md-1">
		<button class="small-icon btn btn-default pos-right"  ng-click="download()">
			<i class="fa fa-download"></i>
		</button>
	</div>
</div>
<div style="width:100%;overflow-x: auto">
<table ui-table="orderParams"  border="1px" bordercolor="#eee" cellspacing="0px" style="border-collapse:collapse;">
	<thead>
		<tr>
			<th style="text-align:left;padding:4px 4px 4px 12px;">项目名称</th>
			<th style="text-align: left;padding:4px;">用户名</th>
			<th style="text-align: left;padding:4px;">姓名</th>
			<th style="text-align: left;padding:4px;">用户信息</th>

			<th style="text-align: left;padding:4px;">投资信息</th>
			<!--<th style="text-align: left;padding:4px;">投资状态</th>-->
			<th style="text-align: left;padding:4px;">流水号</th>
			<!--<th style="text-align: left;padding:4px;">投资额</th>-->
			<th style="text-align: left;padding:4px;">成交额</th>
			<th style="text-align: left;padding:4px;">应收金额</th>
			<th style="text-align: left;padding:4px;">期限</th>
			<th style="text-align: left;padding:4px;">红包使用</th>
			<th style="text-align: left;padding:4px;">加息券使用</th>
			<th style="text-align: left;padding:4px;" >时间信息</th>
			<th style="text-align: left;padding:4px;">操作</th>
		</tr>
	</thead>
	<tbody>

		<tr ng-repeat="item in orderParams.$rows" style="text-align: left">
			<td style="text-align: left;padding:4px 4px 4px 12px">
				<div><span ng-if="item.itemName">{{item.itemName}}</span>
				<span ng-if="!item.itemName">体验金</span></div>
				<div>{{item.itemRate}}%+{{item.itemAddRate}}%</div>
			</td>
			<td style="text-align: left;padding:4px;">{{item.username}}</td>
			<td style="text-align: left;padding:4px;">{{item.realname}}</td>
			<td style="text-align: left;padding:4px;">
				<div>类型：{{item.customerType | customerType}}</div>
				<div>来源：{{item.referer}}</div>

			</td>
			<td style="text-align: left;padding:4px;">

				<div>类型：{{item.investType | investType}}</div>
				<div>状态：{{item.investStatus | investStatus}}</div>
				<div>金额：{{item.investAmount}} </div>
			</td>

			<!--<td style="text-align: left;padding:4px;">{{item.investType | investType}}</td>-->
			<!--<td style="text-align: left;padding:4px;">{{item.investStatus | investStatus}}</td>-->
			<td style="text-align: left;padding:4px;">{{item.investOrder}} </td>
			<!--<td style="text-align: left;padding:4px;">{{item.investAmount}} 元</td>-->
			<td style="text-align: left;padding:4px;">{{item.investDealAmount}}</td>

			<td style="text-align: left;padding:4px;">

				<div>总额：{{item.collectAmount}}</div>
				<div>本金：{{item.collectPrincipal}}</div>
				<div>利息：{{item.collectInterest}}</div>
			</td>

			<td style="text-align: left;padding:4px;">
				<span ng-if="item.itemCycle">{{item.itemCycle}} {{item.itemCycleUnit | cycleUnit}}</span>
				<span ng-if="!item.itemCycle">3 天</span>

			</td>
			<td style="padding:4px;text-align: left">
				<div ng-if="item.couponName!=null">
					<div>金额：{{item.couponAmount}}</div>
					<div>名称：【{{item.couponName}}】</div>
					<!--<div>时间：{{item.couponUseTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>-->
				</div>
				<div ng-if="item.couponName==null">未使用</div>

			</td>
			<td style="padding:4px;text-align: left">
				<div ng-if="item.ticketName!=null">
					<div>加息率：{{item.ticketRate}} %</div>
					<div>名称：【{{item.ticketName}}】</div>
					<!--<div>时间：{{item.ticketUseTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>-->
				</div>
				<div ng-if="item.ticketName==null">未使用</div>
			</td>
<td style="padding:4px;text-align: left">
			<div>投资：{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</div>
			<div>满标：{{item.fullTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>
			<div>回款：{{item.receivableTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>
</td>
			<td style="text-align: left;padding:4px 20px 4px 4px;">
				<a ng-if="item.contractsUrl" ng-click="getContract(item.contractsUrl)">合同下载</a>
			</td>
		</tr>
	</tbody>
</table>
</div>